package com.ruoyi.develop.goodsSaledoGongxuUserMoney.mapper;

import java.util.List;

import com.ruoyi.develop.goodsSaledoGongxuUserMoney.domain.GoodsSaledoGongxuUserMoney;
import org.apache.ibatis.annotations.Param;
/**
 * 报工列Mapper接口
 * @author qh
 * @date 2024-11-13
 */
public interface GoodsSaledoGongxuUserMoneyMapper {
    /**
     * 查询报工列
     * @param id 报工列主键
     * @return 报工列
     */
    public GoodsSaledoGongxuUserMoney selectById(String id);

    public GoodsSaledoGongxuUserMoney selectParent(String id);

    public GoodsSaledoGongxuUserMoney selectByGoodssaleId(String factoryGoodssaleid);
    /**
     * 查询报工列列表
     * @param entity 报工列
     * @return 报工列集合
     */
    public List<GoodsSaledoGongxuUserMoney> selectList(GoodsSaledoGongxuUserMoney entity);

    public List<GoodsSaledoGongxuUserMoney> listAndParent(GoodsSaledoGongxuUserMoney entity);
    public List<GoodsSaledoGongxuUserMoney> listByGongxuId(GoodsSaledoGongxuUserMoney entity);
    /**
     * 新增报工列
     * @param entity 报工列
     * @return 结果
     */
    public int insert(GoodsSaledoGongxuUserMoney entity);

    /**
     * 修改报工列
     * @param entity 报工列
     * @return 结果
     */
    public int update(GoodsSaledoGongxuUserMoney entity);

    /**
     * 删除报工列
     * @param id 报工列主键
     * @return 结果
     */
    public int deleteById(String id);

    /**
     * 批量删除报工列
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    public int updateStatusByParentId(@Param("status")String status,@Param("parentId")String parentId);

    public void updateAllNotLast(@Param("gongyiId")String gongyiId);

    public void updateLastById(@Param("id")String id);
}
